package com.frank.auth.domain.service;

import com.frank.auth.domain.bo.AuthPermissionBo;

import java.util.List;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2024/2/13
 * @description
 */
public interface PermissionDomainService {

    /**
     * 添加权限
     * @param authPermissionBo permission
     * @return result
     */
    Boolean addPermission(AuthPermissionBo authPermissionBo);

    /**
     * 修改权限
     * @param authPermissionBo permission
     * @return result
     */
    Boolean updatePermission(AuthPermissionBo authPermissionBo);

    /**
     * 删除权限
     * @param id id
     * @return result
     */
    Boolean deletePermission(Long id);

    /**
     * get user permissions
     * @param username username
     * @return result
     */
    List<String> getPermission(String username);
}
